home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.3 KB  |  98 lines

  1. /*  signal.h
  2.  
  3.     Definitions for ANSI defined signaling capability
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.0
  9.  *
  10.  *      Copyright (c) 1988, 1998 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   9.3  $ */
  15.  
  16. #ifndef __SIGNAL_H
  17. #define __SIGNAL_H
  18.  
  19. #ifndef ___STDDEF_H
  20. #include <_stddef.h>
  21. #endif
  22.  
  23. #ifdef __cplusplus
  24.   namespace std {
  25. #endif /* __cplusplus */
  26.  
  27.  
  28. #if !defined(RC_INVOKED)
  29.  
  30. #if defined(__STDC__)
  31. #pragma warn -nak
  32. #endif
  33.  
  34. #endif  /* !RC_INVOKED */
  35.  
  36.  
  37. typedef int sig_atomic_t;   /* Atomic entity type (ANSI) */
  38.  
  39. #ifdef __cplusplus
  40. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)(int);
  41. #else
  42. typedef void _USERENTRY (_EXPFUNC * _CatcherPTR)();
  43. #endif
  44.  
  45. #define SIG_DFL ((_CatcherPTR)0)   /* Default action   */
  46. #define SIG_IGN ((_CatcherPTR)1)   /* Ignore action    */
  47. #define SIG_ERR ((_CatcherPTR)-1)  /* Error return     */
  48.  
  49. #define SIGABRT         22
  50. #define SIGFPE           8              /* Floating point trap  */
  51. #define SIGILL           4              /* Illegal instruction  */
  52. #define SIGINT           2
  53. #define SIGSEGV         11              /* Memory access violation */
  54. #define SIGTERM         15
  55. #define SIGUSR1         16              /* User-defined signal 1 */
  56. #define SIGUSR2         17              /* User-defined signal 2 */
  57. #define SIGUSR3         20              /* User-defined signal 3 */
  58. #define SIGBREAK        21              /* Control-Break interrupt */
  59.  
  60. #ifdef __cplusplus
  61. extern "C" {
  62. #endif
  63. int _RTLENTRY _EXPFUNC raise(int __sig);
  64. #ifdef __cplusplus
  65. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)(int))) (int);
  66. }
  67. #else
  68. void (_USERENTRY * _RTLENTRY _EXPFUNC32 signal(int __sig, void (_USERENTRY * __func)())) (int);
  69. #endif
  70.  
  71. #if !defined(__STDC__)
  72. #define NSIG   23      /* highest defined signal no. + 1 */
  73. #endif
  74.  
  75.  
  76. #if !defined(RC_INVOKED)
  77.  
  78. #if defined(__STDC__)
  79. #pragma warn .nak
  80. #endif
  81.  
  82. #endif  /* !RC_INVOKED */
  83.  
  84. #ifdef __cplusplus
  85. } // std
  86. #endif /* __cplusplus */
  87.  
  88.  
  89. #endif  /* __SIGNAL_H */
  90.  
  91. #if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(__SIGNAL_H_USING_LIST)
  92. #define __SIGNAL_H_USING_LIST
  93.      using std::_CatcherPTR;
  94.      using std::sig_atomic_t;
  95.      using std::raise;
  96.      using std::signal;
  97. #endif /* __USING_CNAME__ */
  98.